<template>
	<view class="par">
		<view class="pari-con">
			<view class="pari-title">{{detail.title}}</view>
			<view class="pari-time">{{detail.dates}}</view>
			<!-- <image src="../../static/img/6.jpg" class="par-img"></image> -->
			<view class="pari-text" v-html="detail.info">
			</view>
		</view>
		<!-- <view class="about">
			<view class="about-left">
				<view style="font-size: 14px;color: rgba(0, 0, 0, 1);">联系电话</view>
				<view style="color: rgba(134, 134, 134, 1);padding-top: 6px;">13509098765</view>
			</view>
			<view class="about-right">
				<image src="/static/img/copy_icon.png"></image>
			</view>
		</view>
		<view class="about">
			<view class="about-left">
				<view style="font-size: 14px;color: rgba(0, 0, 0, 1);">微信客服</view>
				<view style="color: rgba(134, 134, 134, 1);padding-top: 6px;">13509098xhdjfhjkj765</view>
			</view>
			<view class="about-right">
				<image src="/static/img/copy_icon.png"></image>
			</view>
		</view>
		<view class="about">
			<view class="about-left">
				<view style="font-size: 14px;color: rgba(0, 0, 0, 1);">QQ客服</view>
				<view style="color: rgba(134, 134, 134, 1);padding-top: 6px;">13509098xhdjfhjkj765</view>
			</view>
			<view class="about-right">
				<image src="/static/img/copy_icon.png"></image>
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail: ''
			}
		},
		onLoad() {
			this.getNews()
		},
		methods: {
			getNews() {
				this.$http.news({
					type: 1
				}).then(res => {
					if (res.data.data && res.data.data.length > 0) {
						this.detail = res.data.data[0]
						this.detail.info = this.$utils.formatRichText(this.detail.info)
					}
				})
			},
		}
	}
</script>

<style scoped>
	.par {
		margin-bottom: 50px;
		width: 100%;
	}

	.pari-con {
		padding: 15px;
	}
	
	.pari-title {
		color: #000000;
		font-size: 16px;
		font-weight: bold;
		text-align: center;
	}

	.pari-time {
		color: #898989;
		text-align: center;
		padding: 10px;
	}

	.par-img {
		height: 144px;
		border-radius: 10px;
	}

	.pari-text {
		color: #161616;
		font-size: 13px;
		padding: 16px 0;
		line-height: 20px;
	}
	.pari-text >>> img{
		width: 100%;
	}
	.about {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin: 0 15px;
		background-color: rgba(187, 187, 187, 0.1);
		padding: 10px 22px;
	}

	.about-right image {
		width: 16px;
		height: 16px;
	}
</style>
